package group5ChenXinli;

import java.util.Scanner;

/**
 * @Author：XinliChen
 * @Name:
 * @Date:2025/03/
 *
 */
public class Eg3 {
    static Scanner scanner = new Scanner(System.in);

    public static void main(String[] args) {

        System.out.print("输入一个数，进行正负数判断：");
        int num = scanner.nextInt();

        if (num > 0) {
            System.out.print("这个数是正数");
        } else if (num < 0) {
            System.out.print("这个数是负数");
        }else{
            System.out.print("这个数是0");
        }
    }
}
